package entity;

import java.time.LocalDate;
import java.util.Objects;

public class Project {
	//项目编号
	private int id;
	//项目名
	private String name;
	//语言
	private String language;
	//是否上线
	private boolean onLine;
	//启动时间
	private LocalDate start;
	//负责人
	private String TL;
	
	public Project(int id, String name, String language, boolean onLine, LocalDate start, String tL) {
		super();
		this.id = id;
		this.name = name;
		this.language = language;
		this.onLine = onLine;
		this.start = start;
		TL = tL;
	}
	
	@Override
	public int hashCode() {
		return Objects.hash(id);
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Project other = (Project) obj;
		return id == other.id;
	}

	public Project() {
		super();
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLanguage() {
		return language;
	}
	public void setLanguage(String language) {
		this.language = language;
	}
	public boolean isOnLine() {
		return onLine;
	}
	public void setOnLine(boolean onLine) {
		this.onLine = onLine;
	}
	public LocalDate getStart() {
		return start;
	}
	public void setStart(LocalDate start) {
		this.start = start;
	}
	public String getTL() {
		return TL;
	}
	public void setTL(String tL) {
		TL = tL;
	}
	@Override
	public String toString() {
		return "Project [id=" + id + ", name=" + name + ", language=" + language + ", onLine=" + onLine + ", start="
				+ start + ", TL=" + TL + "]";
	}
	
}
